package org.lds.message.center.core.enums;

import org.lds.message.center.common.enums.ErrCodeEnum;

public enum CoreErrorEnum implements ErrCodeEnum {

    CHANNEL_INVALID("CHANNEL_INVALID", "消息类型不合法"),
    PUBLIC_REQUEST_INVALID("PUBLIC_REQUEST_INVALID", "请求不合法"),

    ;

    private String code;
    private String message;

    CoreErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
